/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Concept Property Id</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * vocSet: T19361 (C-0-T19361-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getConceptPropertyId()
 * @model extendedMetaData="name='ConceptPropertyId'"
 * @generated
 */
public enum ConceptPropertyId implements Enumerator {
	/**
	 * The '<em><b>OID</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OID_VALUE
	 * @generated
	 * @ordered
	 */
	OID(0, "OID", "OID"),

	/**
	 * The '<em><b>Applies To</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #APPLIES_TO_VALUE
	 * @generated
	 * @ordered
	 */
	APPLIES_TO(1, "appliesTo", "appliesTo"),

	/**
	 * The '<em><b>How Applies</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #HOW_APPLIES_VALUE
	 * @generated
	 * @ordered
	 */
	HOW_APPLIES(2, "howApplies", "howApplies"),

	/**
	 * The '<em><b>Inverse Relationship</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #INVERSE_RELATIONSHIP_VALUE
	 * @generated
	 * @ordered
	 */
	INVERSE_RELATIONSHIP(3, "inverseRelationship", "inverseRelationship"),

	/**
	 * The '<em><b>Open Issue</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OPEN_ISSUE_VALUE
	 * @generated
	 * @ordered
	 */
	OPEN_ISSUE(4, "openIssue", "openIssue");

	/**
	 * The '<em><b>OID</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>OID</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OID
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int OID_VALUE = 0;

	/**
	 * The '<em><b>Applies To</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Applies To</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #APPLIES_TO
	 * @model name="appliesTo"
	 * @generated
	 * @ordered
	 */
	public static final int APPLIES_TO_VALUE = 1;

	/**
	 * The '<em><b>How Applies</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>How Applies</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #HOW_APPLIES
	 * @model name="howApplies"
	 * @generated
	 * @ordered
	 */
	public static final int HOW_APPLIES_VALUE = 2;

	/**
	 * The '<em><b>Inverse Relationship</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Inverse Relationship</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #INVERSE_RELATIONSHIP
	 * @model name="inverseRelationship"
	 * @generated
	 * @ordered
	 */
	public static final int INVERSE_RELATIONSHIP_VALUE = 3;

	/**
	 * The '<em><b>Open Issue</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Open Issue</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OPEN_ISSUE
	 * @model name="openIssue"
	 * @generated
	 * @ordered
	 */
	public static final int OPEN_ISSUE_VALUE = 4;

	/**
	 * An array of all the '<em><b>Concept Property Id</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ConceptPropertyId[] VALUES_ARRAY =
		new ConceptPropertyId[] {
			OID,
			APPLIES_TO,
			HOW_APPLIES,
			INVERSE_RELATIONSHIP,
			OPEN_ISSUE,
		};

	/**
	 * A public read-only list of all the '<em><b>Concept Property Id</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ConceptPropertyId> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Concept Property Id</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ConceptPropertyId get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ConceptPropertyId result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Concept Property Id</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ConceptPropertyId getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ConceptPropertyId result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Concept Property Id</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ConceptPropertyId get(int value) {
		switch (value) {
			case OID_VALUE: return OID;
			case APPLIES_TO_VALUE: return APPLIES_TO;
			case HOW_APPLIES_VALUE: return HOW_APPLIES;
			case INVERSE_RELATIONSHIP_VALUE: return INVERSE_RELATIONSHIP;
			case OPEN_ISSUE_VALUE: return OPEN_ISSUE;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private ConceptPropertyId(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //ConceptPropertyId
